use strict;
use warnings;

package Event::RegistrationBillableItemMap;

use base qw(My::DB::Object);

__PACKAGE__->meta->setup(
	table         => 'registration_billable_item_map',
	columns       => [ 'registration_id' => { 'type' => 'int', 'not_null' => 1 }, 'billable_item_id' => { 'type' => 'int', 'not_null' => 1 }, ],
	relationships => [
		registration => { type => 'many to one', class => 'Event::Registration', column_map => { 'registration_id' => 'id' }, },
		billable_item   => { type => 'many to one', class => 'Event::BillableItem',   column_map => { 'billable_item_id' => 'id' }, },
	],
);

1;
